package uy.com.tsi2G7.superbet.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="COUNTRIES")
@Entity
public class Country implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id 
	@Column(name="Code", length=3)
	private String code; 
	@Column(name="Name", length=52)
	private String name;  
	@Column(name="Continent")
	private String continent;
	@Column(name="Region", length=26)
	private String region;  
	@Column(name="SurfaceArea")
	private float surfaceArea; 
	@Column(name="IndepYear")
	private Integer indepYear;
	@Column(name="Population")
	private int  population;
	@Column(name="LifeExpectancy")
	private Float lifeExpectancy;
	@Column(name="GNP")
	private float gnp;  
	@Column(name="GNPOld")
	private Float gnpOld;
	@Column(name="LocalName", length=45)
	private String localName;
	@Column(name="GovernmentForm",  length=45)
	private String govermentForm;
	@Column(name="HeadOfState",  length=60)
	private String  headOfState;
	@Column(name="Capital")
	private Integer capital;
	@Column(name="Code2",  length=2)
	private String code2;
	
	public String toString(){
		return name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContinent() {
		return continent;
	}

	public void setContinent(String continent) {
		this.continent = continent;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public float getSurfaceArea() {
		return surfaceArea;
	}

	public void setSurfaceArea(float surfaceArea) {
		this.surfaceArea = surfaceArea;
	}

	public Integer getIndepYear() {
		return indepYear;
	}

	public void setIndepYear(Integer indepYear) {
		this.indepYear = indepYear;
	}

	public int getPopulation() {
		return population;
	}

	public void setPopulation(int population) {
		this.population = population;
	}

	public Float getLifeExpectancy() {
		return lifeExpectancy;
	}

	public void setLifeExpectancy(Float lifeExpectancy) {
		this.lifeExpectancy = lifeExpectancy;
	}

	public float getGnp() {
		return gnp;
	}

	public void setGnp(float gnp) {
		this.gnp = gnp;
	}

	public Float getGnpOld() {
		return gnpOld;
	}

	public void setGnpOld(Float gnpOld) {
		this.gnpOld = gnpOld;
	}

	public String getLocalName() {
		return localName;
	}

	public void setLocalName(String localName) {
		this.localName = localName;
	}

	public String getGovermentForm() {
		return govermentForm;
	}

	public void setGovermentForm(String govermentForm) {
		this.govermentForm = govermentForm;
	}

	public String getHeadOfState() {
		return headOfState;
	}

	public void setHeadOfState(String headOfState) {
		this.headOfState = headOfState;
	}

	public Integer getCapital() {
		return capital;
	}

	public void setCapital(Integer capital) {
		this.capital = capital;
	}

	public String getCode2() {
		return code2;
	}

	public void setCode2(String code2) {
		this.code2 = code2;
	}
}
